public class ArrReverse01 {
    public static void main(String[] args) {

        int[] arr = {72, 89, 65, 87, 91};

        for (int i = 0; i < (arr.length/2); i++) {
            int temp = arr[i];
            int j = arr.length - i - 1;
            arr[i] = arr[j];
            arr[j] = temp;
        }
        //用start++,end--实现更直观,循环条件start < end

        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
    }
}
